package com.alex.gulimarket.controller;

import com.alex.gulimarket.service.TestService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;



@RestController
@RequestMapping("/test")
public class TestController {
    @Resource
    TestService testService;

    @RequestMapping(method = RequestMethod.GET, value = "t")
    public String test(Integer integer) {
        return testService.testService(integer);
    }

    @RequestMapping(method = RequestMethod.GET, value = "getUser")
    public String getUser(Integer integer) {
        return testService.getUser(integer);
    }
}
